package cc.rengu.redp.flowable.bizrule.rule;

import com.alibaba.fastjson.JSONObject;

public abstract class CompleteTaskRule implements BusiRule {

	protected final static String RULE_PREFIX = "CTRule"; // complete task rule

	@Override
	public RuleResult checkSuitable(JSONObject validateJson) {
		return RuleResult.buildSuccessResult();
	}

	@Override
	public abstract RuleResult validateData(JSONObject validateJson);

	@Override
	public abstract JSONObject getValidateData(JSONObject requestJson);

	@Override
	public abstract void dataPreHandle(JSONObject validateJson);

	@Override
	public String getRulePrefix(){
		return RULE_PREFIX;
	}
}
